import App from './App'
import rsa from '@/common/utils/rsa.js'

// #ifndef VUE3
import Vue from 'vue'
import uView from '@/uni_modules/uview-ui'
import store from './store';
import * as custom  from './common/filter.js'
import apiIndex from '@/common/utils/apiReques.js'

Object.keys(custom).forEach(key => {
  Vue.filter(key, custom[key])
});
Vue.prototype.$apiIndex = apiIndex
Vue.use(uView)
//vuex
Vue.prototype.$rsa = rsa
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App,
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif